package com.chat.common.result;

public enum ResultEnum {
    //4000 权限 好友 用户信息
    USER_NOT_EXIST(4001,"用户不存在"),
    AUTH_ERROR(4000,"无权限"),
    LOGIN_ERROR(4002," 账号或密码错误"),
    USER_NOT_LOGIN(4003,"用户未登录"),
    Friend_NOT_EXIST(4004,"好友不存在"),
    Friend_REQUEST_IS_SEND(4005,"好友请求已发送"),
    USER_IS_BLACKED(4006,"用户已拉黑"),
    USER_IS_NOT_BLACKED(4008,"用户未拉黑"),
    TOKEN_IS_EXPIRED(4007,"token已过期"),
    TOKEN_IS_ERROR(4008,"token错误"),
    TOKEN_IS_NOT_EXIST(4009,"token不存在"),
    CODE_IS_ERROR(4010,"验证码错误"),
    CODE_IS_NOT_EXIST(4011,"验证码不存在"),
    CODE_IS_EXPIRED(4012,"验证码已过期"),
    CODE_IS_FREQUENT(4013,"验证码发送过于频繁"),
    CODE_SEND_FAIL(4014,"验证码发送失败"),
    SMS_CLIENT_ERROR(4014,"短信客户端错误"),
    JWT_ERROR(4014,"jwt错误"),
    USER_REGISTER_FAIL(4015,"用户注册失败"),
    Friend_REQUEST_HANDLED(4016,"好友请求已处理" ),




    //5000 参数校验
    NULL_PARAM(5000,"参数不能为空");

    private Integer code;
    private String msg;
    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
